package day07.test01;

public class Market {

	Dog[] dogs; //  = new Dog[10];

	public Market() {
		// 当市场被创建出来, 市场中的容器也应当随之初始化好
		this.dogs = new Dog[10];
		for (int i = 0; i < dogs.length; i++) {
			Dog d = new Dog();
			d.name = "狗" + (i + 1);
			this.dogs[i] = d;
		}
	}

}
